guzzlehttp php basic auth

42

guzzlehttp php basic auth -

$client = new GuzzleHttp\Client();
$res = $client->request('GET', 'https://api.github.com/user', [
    'auth' => ['user', 'pass']
]);

Comments

Submit
0 Comments